<!--
 * @Author: aum
 * @Date: 2021-03-05 16:34:01
 * @LastEditors: aum
 * @LastEditTime: 2021-08-27 19:26:02
 * @Description: 广告页面
 * @FilePath: \vue3-hand-vant\src\views\ad\AdIndex.vue
-->
<template>
  <div>
    广告页面
    <Button @click="back" block type="primary" native-type="submit"> 返回 </Button>
  </div>
</template>
<script lang="ts">
  import { defineComponent } from 'vue'
  import { Button } from 'vant'
  import { useRouter } from 'vue-router'

  export default defineComponent({
    name: 'Home',
    components: {
      Button
    },
    setup() {
      const router = useRouter()

      const back = () => {
        router.back()
      }
      return {
        back
      }
    }
  })
</script>
